package Arithmetic_operator_package;

public class Arithmetic_operator_TypeConversion {
    public static void main(String[] args) {
        byte b1 = 10;
        byte b2 = 20;

        int result1 = b1 + b2;//自动类型转换
        System.out.println(result1);//30

        byte result2 = (byte) (b1 + b2);//强制类型转换
        System.out.println(result2);//30
    }
}
